<!DOCTYPE html>
<html>
<head>
  <title>Blog</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>
<div class="container">
  <%= render 'layouts/header'%>
  <%flash.each do |message_type, message| %>

      <div  style="margin: 0 auto;width: 70%;text-align: center" class="alert alert-<%= message_type %>">
        <a href="#" class="close" data-dismiss="alert">
          &times;
        </a>
        <%= message %>
      </div>
  <% end %>
  <%= yield %>
  <%= render 'layouts/footer' %>
  <br><br>
  <%= debug(params) if Rails.env.development? %>
</div>

</body>
</html>
